<!DOCTYPE html>
<html>

<head>
    <title>{$card.name} - 华东理工校友名片</title>
    <meta name="keywords" content="{$site_info.site_seo_keywords|default=''}" />
    <meta name="description" content="{$site_info.site_seo_description|default=''}">
    <include file="public@head" />
</head>

<body class="bg-light page-card">
    <include file="public@nav" />
    <section class="container my-5">
        <div class="row">
            <div class="col-2">
                <div class="card border-0 mb-3">
                    <div class="card-body">
                        <div class="text-center">
                            关注微信公众号
                            <br><span class="badge badge-info">新梅陇客栈</span>
                            <img src="/assets/dist/images/qrcode.jpg" class="img-fluid">
                        </div>
                    </div>
                </div>
                <div class="card border-0 mb-3">
                    <div class="card-body">
                        <h6>关于社区</h6>
                        <ul class="list-unstyled">
                            <li><a href="{:cmf_url('portal/Page/index',array('id'=>40))}">联系我们</a></li>
                            <li><a href="{:cmf_url('portal/Page/index',array('id'=>39))}">关于我们</a></li>
                            <li><a href="{:cmf_url('portal/Page/index',array('id'=>39))}">近期活动</a></li>
                        </ul>
                        <h6>快捷联系</h6>
                        <ul class="list-unstyled m-0">
                            <li><a href="tel:(+86) 159-2158-7537"><i class="fa fa-phone"></i> 159-2158-7537</a></li>
                            <li><a href="mailto:supu@vip.qq.com"><i class="fa  fa-envelope-o"></i> supu@vip.qq.com</a></li>
                        </ul>
                    </div>
                </div>
            </div>
            <div class="col-7">
                <div class="card-name rounded-top">
                    <div class="card-name-overlay rounded-top">
                        <h2>{$card.name}</h2>
                        <notempty name='$card.card_category'>
                            <p>{$card.card_category}</p>
                        </notempty>
                        <div class="card-infobox">
                            <small>
                            <span>{:readable_time(date('Y-m-d H:i',$card.published_time))} 发布<!-- By 
                            <empty name="$card.user.user_nickname">
                                {$card.user.user_login}
                                <else/>
                                {$card.user.user_nickname}
                            </empty> -->
                        </span>
                            <span>
                            <a href="javascript:;"><i class="fa fa-eye"></i> <span>{$card.card_hits}</span></a>
                            <a href="{:url('businesscard/Card/doLike',array('id'=>$card['id']))}" class="js-count-btn"><i
                                    class="fa fa-thumbs-up"></i> <span class="count">{$card.card_like}</span> </a>
                            <a href="{:url('user/favorite/add')}" class="js-favorite-btn" data-title="{:base64_encode($card.name)}" data-url="{:cmf_url_encode('businesscard/Card/index',array('id'=>$card['id']))}" data-table="business_card" data-id="{$card['id']}">
                                <i class="fa fa-star-o"></i>
                            </a>
                            </span>
                            </small>
                        </div>
                        <p>NO.{$card.card_no}</p>
                    </div>
                </div>
                <div class="card border-0">
                    <div class="card-body">
                        <table class="table table-hover table-striped">
                            <tr>
                                <td width="25%">班级</td>
                                <td>{$card.class}</td>
                            </tr>
                            <tr>
                                <td width="25%">学号</td>
                                <td>{$card.stu_no}</td>
                            </tr>
                            <tr>
                                <td>邮箱</td>
                                <td>{$card.email}</td>
                            </tr>
                            <tr>
                                <td>微信</td>
                                <td>{$card.wechat}</td>
                            </tr>
                            <tr>
                                <td>手机</td>
                                <td>{$card.mobile_phone}</td>
                            </tr>
                            <tr>
                                <td>标签</td>
                                <td>{$card.card_tags}</td>
                            </tr>
                            <tr>
                                <td>所在区域</td>
                                <td>{$card.address}</td>
                            </tr>
                            <tr>
                                <td>个人简介</td>
                                <td>{$card.summary}</td>
                            </tr>
                        </table>
                        <p><strong>所在企业：</strong></p>
                        <table class="table table-hover table-striped">
                            <tr>
                                <td width="25%">工作单位</td>
                                <td>{$card.employer}</td>
                            </tr>
                            <tr>
                                <td>职位名称</td>
                                <td>{$card.position}</td>
                            </tr>
                            <tr>
                                <td>工作电话</td>
                                <td>{$card.work_tel}</td>
                            </tr>
                        </table>
                        <notempty name='$card.card_content'>
                            <p><strong>详细介绍：</strong></p>
                            <div>
                                {$card.card_content}
                            </div>
                        </notempty>
                    </div>
                </div>
                <div class="card border-0">
                    <div class="card-body">
                        <!-- 
                    <php>
                        $comment_hook_param=[ 'object_id'=>$card['id'], 'table_name'=>'portal_post', 'object_title'=>$card['name'], 'url'=>cmf_url_encode('businesscard/Card/index',array('id'=>$card['id'])) ]; $comment=hook_one('comment',$comment_hook_param);
                    </php>
                    <if condition="empty($comment) && cmf_get_current_admin_id()">
                    <div style="border: 1px dashed #ddd;min-height: 200px;padding-top: 50px;">
                        <div class="alert alert-warning" role="alert">
                            此区域这为评论区，请安装评论插件！<br>
                            <em>注：普通用户不会看到此提示！</em>
                        </div>
                    </div>
                </if>
                {$comment} -->
                    </div>
                </div>
            </div>
            <div class="col-3">
                <div class="sticky-top">
                    <div class="card border-0 user-card ">
                        <img class="card-img-top" src="/assets/dist/images/card_bg.jpg" alt="Card image cap">
                        <div class="card-body">
                            <div class="text-center">
                                <div style="margin-top:-60px" class="mx-auto">
                                    <empty name="$user.avatar">
                                        <a href="{:url('user/profile/avatar')}">
                                            <img src="/assets/dist/images/headicon_128.png" class="headicon rounded-circle shadow-sm" alt="{$user.user_nickname}">
                                        </a>
                                        <else/>
                                        <a href="{:url('user/profile/center')}">
                                            <img src="{:cmf_get_user_avatar_url($user.avatar)}" class="headicon rounded-circle shadow-sm" alt="{$user.user_nickname}">
                                        </a>
                                    </empty>
                                </div>
                                <h6 class="my-2">{$user.user_nickname}</h6>
                                <p class="card-text">{$user.signature|default="这家伙有点懒，什么都没留下"}</p>
                                <if condition="$user eq false">
                                    <a class="btn btn-info btn-sm" href="{:cmf_url('user/Login/index')}">立即登录</a>
                                </if>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <include file="public@footer" />
    <include file="public@scripts" />
    <hook name="before_body_end" />
</body>

</html>